<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
</head>
<body>

<div class="container">
    <h1>书单</h1>
    <a href="{% url "web:bookAdd" %}" class="button btn-primary btn-lg">添加</a>
    <table class="table table-bordered table-hover">
        <thead>
            <tr>
                <th>序号</th>
                <th>书名</th>
                <th>价格</th>
                <th>出版日期</th>
                <th>出版社</th>
                <th>作者</th>
                <th>操作</th>
            </tr>
        </thead>

        <tbody>
            {% for book_obj in book_obj_list %}
            <tr>
                <td>{{ book_obj.pk }}</td>
                <td>{{ book_obj.title }}</td>
                <td>{{ book_obj.price }}</td>
                <td>{{ book_obj.publish_date }}</td>
                <td>{{ book_obj.publish }}</td>
                <td>{{ book_obj.show_authors }}</td>
                <td>
                    <a href="{% url 'web:bookEdit' book_obj.pk %}" class="button btn-success btn-lg">编辑</a>
                    |
                    <a href="{% url 'web:bookDelete' book_obj.pk %}" class="button btn-warning btn-lg">删除</a>
                </td>
            </tr>
            {% endfor %}
        </tbody>
    </table>


</div>

<script src="/static/jquery.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>